'\" t
.\"     Title: bugle-logdebug
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\"      Date: June 2012
.\"    Manual: Bugle user manual
.\"    Source: BUGLE 0.0.20150628
.\"  Language: English
.\"
.TH "BUGLE\-LOGDEBUG" "7" "June 2012" "BUGLE 0.0.20150628" "Bugle user manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
bugle-logdebug \- send GL debug log to bugle log
.SH "SYNOPSIS"
.sp
.nf
filterset logdebug
.fi
.SH "DESCRIPTION"
.PP
The
logdebug
installs a callback using
\fBglDebugMessageCallbackARB\fR
and reports any GL debug log messages to the
bugle
log\&.
.PP
Note that this will only be effective in a debug context\&. If your application does not already create a debug context, you can use the
\fBbugle-contextattribs\fR(7)
filter\-set to achieve this\&.
.PP
The GL severities
GL_DEBUG_SEVERITY_HIGH_ARB,
GL_DEBUG_SEVERITY_MEDIUM_ARB
and
GL_DEBUG_SEVERITY_LOW_ARB
are mapped to the log levels warning, notice and info, which allows lower\-severity messages to be filtered out\&.
.SH "OPTIONS"
.PP
\fBsync\fR
.RS 4
If set to
yes, then
GL_DEBUG_OUTPUT_SYNCHRONOUS
will be enabled\&.
.RE
.SH "BUGS"
.PP
It is not recommended to use this filter\-set with an application that uses the ARB_debug_output extension itself\&. Messages will be forwarded to the application\*(Aqs callback, but the filter\-set will modify the set of messages that is enabled and this will be observable to the application\&. Enabling and disabling the filter\-set on the fly may also have unexpected effects if the application changes the set of enabled messages\&.
.SH "AUTHOR"
.PP
bugle
is written and maintained by
Bruce Merry\&.
.SH "SEE ALSO"
.PP
\fBbugle\fR(3),
\fBbugle-log\fR(7),
\fBbugle-contextattribs\fR(7)
